using System;
using Dracham.Network;
using System.Net;
using System.Windows.Forms;

namespace Dracham
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main(string[] args)
        {
            using (frmLogin login = new frmLogin())
            {
                if (login.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                {
                    using (Dracham game = new Dracham(login.Username, login.Password))
                    {
                        game.Run();
                    }
                }
            }
        }
    }
}

